home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 3_0 / MIDIMERG / MIDIMERG.H < prev    next >
Text File  |  1988-12-08  |  805b  |  27 lines

  1. /*    MidiMerger.h:
  2.         This allows a Mac program to send stuff to a device, while also
  3.         allowing input from a keyboard to go to the device as well,
  4.         merging input from both sources. The structure isn't brilliant;
  5.         I've just copied the structure from the assembly routines, so
  6.         the two ports work independently. I will do this properly
  7.         sometime. */
  8.         
  9. typedef unsigned char BYTE;
  10.  
  11. typedef enum {
  12.     MODEM, PRINTER
  13. } PORT;
  14.  
  15. extern void startMidi(PORT port);
  16. extern void stopMidi(PORT port);
  17.  
  18. extern void channelise(PORT port, int channel);
  19. extern void noChannelise(PORT port);
  20.  
  21. extern void idleMidi(PORT input, PORT output);
  22.                                         /*    Idle from one port to another,
  23.                                             processing the messages. */
  24.  
  25. extern void transmitMidi(PORT port, BYTE *message);
  26.                                         /*    Send a complete MIDI message. */
  27.